package com.itheima.ydd.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.ydd.common.R;
import com.itheima.ydd.common.ResultData;
import com.itheima.ydd.entity.SysUser;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author author
 * @since 2022-05-22
 */
public interface ISysUserService extends IService<SysUser> {

    R profile(Long userId);

    /**
     * @description: 用户列表分页查询
     * @author: 黄伟兴
     * @date: 2022/9/7 12:33
     * @param: [login_name, status, phone, page, limit]
     * @return: com.itheima.ydd.common.ResultData
     **/
    ResultData getList(String login_name, String status, String phone, Integer page, Integer limit);

    /**
     * @description: 管理员删除
     * @author: 黄伟兴
     * @date: 2022/9/7 12:36
     * @param: [id]
     * @return: com.itheima.ydd.common.ResultData
     **/
    ResultData deleteById(String id);

    /**
     * @description: 查询管理员详情
     * @author: 黄伟兴
     * @date: 2022/9/7 17:09
     * @param: [id]
     * @return: com.itheima.ydd.common.ResultData
     **/
    ResultData getDetail(String id);

    ResultData add(SysUser user);
}
